﻿{var i = (pg-1) * g.pg;}
{for p in pList}
{var i = i + 1;}
                <tr class="tbrow">
                   <td>${i}</td>
                   <td>${p.u}</td>
                   <td>
                   (${p.posi.name})
                    {if p.posi.id > 2}
                        ${p.l}
                    {else}
                        <a href="javascript:void(0);" dsn="${p.sn}">${p.l}</a>
                    {/if}
                   </td>
                   <td>${p.s.name}</td>
                   <td>
                    <ul>
                        <li class="action-li ui-state-default ui-corner-all">
                            <a href="javascript:void(0);" class="action ui-icon ui-icon-trash" delsn="${p.sn}" title="Delete"></a>
                        </li>
                        <li class="action-li ui-state-default ui-corner-all">
                            <a href="/${g.cul}/Agent/BoUpdateAgent/${p.sn}" class="action ui-icon ui-icon-document" title="Edit"></a>
                        </li>
                        <li class="action-li ui-state-default ui-corner-all">
                            <a href="/${g.cul}/Agent/ChPwdAgent/${p.sn}" class="popup-div w280 h160 action ui-icon ui-icon-person" title="Change Password"></a>
                        </li>
                        {if p.posi.id < 3}
                            <li class="action-li ui-state-default ui-corner-all">
                                {if p.posi.id == 1}
                                <a href="/${g.cul}/Agent/Create/${p.sn}" class="action ui-icon ui-icon-plus" title="Create Agent"></a>
                                {else}
                                <a href="/${g.cul}/Agent/Create/${p.sn}" class="action ui-icon ui-icon-plus" title="Create Member"></a>
                                {/if}
                            </li>
                        {/if}
                        {if p.posi.id == 3}
                            <li class="action-li ui-state-default ui-corner-all">
                                <a href="javascript:void(0);" class="action ui-icon ui-icon-tag" memsn="${p.sn}" title="Place Order"></a>
                            </li>
                        {/if}
                    </ul>
                   </td>
                </tr>
{/for}